
const getArrFromCol = (collection, target) => {
    try {
        let result = [];
        collection.forEach((item) => {
            result.push(item[target]);
        });
        return result;
    } catch (err) {
        console.log('getArrforCollection出错', err);
    }
}
export {
    getArrFromCol
}